package ch.unisi.inf.editor;

import javax.swing.*;
import java.awt.event.*;
import ch.unisi.inf.engine.Image;

/**
 * creates a command for getting the info of an image
 * 
 * @author  matthias.eberli@lu.unisi.ch
 */
public class InfoCommand extends AbstractAction
{
     private final Image image;
     private final EditorButtonFrame editorButtonFrame;
     private final ImagePanel imagePanel;
     
     public InfoCommand(final Image image, final ImagePanel imagePanel, final EditorButtonFrame editorButtonFrame)
     {
         this.image = image;
         this.imagePanel = imagePanel;
         this.editorButtonFrame = editorButtonFrame;
         
         // menu item text
        putValue(NAME, "Info");
        // used as accelerator (underlined in text, allow user to press this key to select this action)
        putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_I, KeyEvent.ALT_DOWN_MASK));
        // tooltip text
        putValue(SHORT_DESCRIPTION, "Get info about the picture");
           
    }
    
    public void actionPerformed(final ActionEvent ev)
    {
        
    }
}
